<%@include file='header.jsp'%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>This is My Bookmarks</title>
	<link rel="stylesheet" href="style/index.css" type="text/css"/>
	<link rel="stylesheet" href="style/error.css" type="text/css"/>
	<link rel="stylesheet" href="style/manage.css" type="text/css"/>
	<script type="text/javascript" src="js/ajax.js">
	</script>
	
	<script type="text/javascript">
	
		function link(winName, newURL) {
			win = window.open("", winName);
			win.location.href = newURL;
			setTimeout(function() {document.location.reload(true)}, 200);
		}
	</script>
</head>

<body>

<div id="header">
 	<a href="/" title="MyBookmarks"><img src="images/logo.jpg" alt="MyBookmarks" class="logo"/></a>

	<div id="nav">
		
	   <a <c:if test="${requestScope.page eq 'b'}">class="now"</c:if> href="listBookmarks.do<c:if test="${! empty sessionScope.user}">?bemail=<c:out value="${sessionScope.user.userEmail}" /></c:if>"><span>Bookmarks</span></a>
	   <c:if test="${! empty sessionScope.user}">
			<a <c:if test="${requestScope.page eq 'm'}">class="now"</c:if> href="manage.do"><span>Management</span></a> 			  
	   </c:if>
	</div>
	
	<div id="status"> 
		<div id="subnav">
		<c:choose>
			<c:when test="${empty sessionScope.user}">
			</div> 
				<span class="pl">Hello, please<a href="login.jsp" rel="nofollow">login</a> or<a href="register.do">register</a></span> 
			<div class="clear"></div>
		
			</c:when>

			<c:otherwise>
				</div> 
					<span class="pl">Welcome back, <c:out value="${sessionScope.user.userEmail}" />. <a href="logout.do">Log out</a> or <a href="change-pwd.do">Change password</a></span> 
				<div class="clear"></div>
			</c:otherwise>
		</c:choose>
	</div> 
</div>